package cc.risingsun.wing.test;

import java.util.List;

import cc.risingsun.wing.apache.dbutils.handlers.BeanListHandler;
import cc.risingsun.wing.dai.SQLRepository;
import cc.risingsun.wing.demo.Demo;

/**
 * 
 * @author iron.yin@gmail.com
 * @sina 2012-10-23
 */

public class ReferenceRepository extends SQLRepository{

	public List<Demo> findByIdAndName(int id , String name)throws Exception{
		final String sql ="select * from demo where id=? and name=?";
		return query.query(sql,new BeanListHandler<Demo>(Demo.class),id,name);
	}
	
}
